Added 'background_area' calculation to GtkCellAreaClass->foreach_alloc vfunc
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Wed, 8 Dec 2010 12:18:05 +0000 (21:18 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Wed, 8 Dec 2010 12:18:05 +0000 (21:18 +0900)
commit34f4b5c190e8a1f9a7e942cb46d33858a8723161
tree3187d281ee0718f61b6ac2e781396c6226b005e8
parenta47a557fc3e17ed99d125df781055a399f72891b
Added 'background_area' calculation to GtkCellAreaClass->foreach_alloc vfunc

This allows us to reduce code allocation code paths in subclasses, as
a result GtkCellArea implements the ->render() vfunc and the subclass
only decides the cell area and background area distributions in a single
code path.
gtk/gtkcellarea.c
gtk/gtkcellarea.h
gtk/gtkcellareabox.c